package com.netty.application;

import com.netty.anno.PackageScan;
import com.netty.resolver.AnnoScanResolver;

public class NettyApplication {
	public static void run(Class clz){
		try {
			PackageScan packageScan = (PackageScan) clz.getAnnotation(PackageScan.class);
			String packageName = packageScan.value();
			AnnoScanResolver.findService(packageName);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}

	}
}
